<include file="application/walletadmin/view/public/left.html"/>
<div id="dcMain">
   <!-- 当前位置 -->
<div id="urHere">管理中心<b>></b><strong>返利管理</strong> </div>   
	<div class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
        <h3>返利列表</h3>
    <div class="filter">
    <form action="{:U('Rebate/index')}" method="post">
  	  	 会员账号:<input name="phone" type="text" placeholder="用户名" class="inpMain" value="" size="20" />
    	 会员ID:<input name="member_id" type="text" placeholder="用户ID" class="inpMain" value="" size="20" />
    	开始时间:<input name="start_time" type="datetime-local" placeholder="开始时间" class="inpMain" value="" size="20" />
    	结束时间:<input name="end_time" type="datetime-local" placeholder="结束时间" class="inpMain" value="" size="20" />
    	<input name="submit" class="btnGray" type="submit" value="搜索" />
    </form>
    </div>
        <div id="list">
    <form name="action" method="post" action="product.php?rec=action">
    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
    <tr style="text-align:center;">
        <th>ID</th>
        <th>用户名</th>
        <th>所有积分</th>
        <th>所有天数</th>
        <th>已释放积分</th>
        <th>释放天数</th>
        <th>每天释放积分</th>
        <th>剩余积分</th>
        <th>剩余天数</th>
        <th>订单ID</th>
        <th>添加时间</th>
        
        <th>状态</th>
        <th>操作</th>
    </tr>
     <volist name='list' id='vo'>
        <tr align="center">
            <td>{$vo['id']}</td>
            <td>{$vo['loginName']}</td>
            <td>{$vo['all_jifen']}</td>
            <td>{$vo['all_day']}</td>
            <td>{$vo['release']}</td>
            <td>{$vo['release_day']}</td>
            <td>{$vo['shifang_per_day']}</td>
            <td>{$vo['remain_jifen']}</td>
            <td>{$vo['remain_day']}</td>
            <td>{$vo['orderId']}</td>
            <td>{$vo.add_time|date="Y-m-d H:i:s",###}</td>
            
            <td>
            	<eq name="vo.status" value="0">
            		<span style="color:green">正常</span>
            		<else />
            		<span style="color:red">禁用</span>
            	</eq>	
            </td>
            <td align="center">
            	<eq name="vo.status" value="1">
                	<a class="link-del" href="{:U('Rebate/status',array('id'=>$vo['id'],'type'=>2))}">开启</a>
                	<a class="link-del" href="{:U('Rebate/details',array('id'=>$vo['id']))}">日志详情</a>
            		<else />
            		<a class="link-del" href="{:U('Rebate/status',array('id'=>$vo['id'],'type'=>1))}">禁用</a>
            		<a class="link-del" href="{:U('Rebate/details',array('id'=>$vo['id']))}">日志详情</a>
            	</eq>
            </td>
        </tr>
    </volist>
          </table>
    </form>
    </div>
    <div class="clear"></div>
    <div class="pager">
    	<div>{$page}</div>
    </div>
    </div>
 </div>
 <div class="clear"></div>
<include file="application/walletadmin/view/public/foot.html"/><!-- dcFooter 结束 -->
<div class="clear"></div> </div>
<script type="text/javascript">

onload = function()
{
 document.forms['action'].reset();
}

function douAction()
{
 var frm = document.forms['action'];
 frm.elements['new_cat_id'].style.display = frm.elements['action'].value == 'category_move' ? '' : 'none';
}

</script>
</body>
</html>
